﻿using HDM.NexusEngine.Core;

namespace HDM.NexusEngine.EngineTest
{
    public class TileData
    {
        private readonly Texture _texture;

        public TileData(Texture texture)
        {
            _texture = texture;
        }

        internal Tile CreateTile()
        {
            var sprite = new Sprite {Texture = _texture};
            var tile = new Tile(sprite);
            return tile;
        }
    }
}